/**
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. <br/>
 */
package com.icinfo.cloud.provider.punish.execute.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 描述: 裁执分离文书记录表 execute_document_record 对应的实体类.<br>
 * WARNING：不是表中字段的属性必须加@Transient注解
 * @author framework generator
 * @date 2022年08月26日
 */
@Data
@Table(name = "execute.execute_document_record")
public class ExecuteDocumentRecord implements Serializable {
    /**
     * 主键
     */
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 裁执分离id
     */
    @Column(name = "execute_id")
    private String executeId;

    /**
     * 裁执分离阶段名称
     */
    @Column(name = "execute_stage_name")
    private String executeStageName;

    /**
     * 裁执分离阶段编码
     */
    @Column(name = "execute_stage_code")
    private String executeStageCode;

    /**
     * 裁执分离环节名称
     */
    @Column(name = "execute_link_name")
    private String executeLinkName;

    /**
     * 裁执分离环节编码
     */
    @Column(name = "execute_link_code")
    private String executeLinkCode;

    /**
     * 文书目录编码
     */
    @Column(name = "document_catalog_code")
    private String documentCatalogCode;

    /**
     * 文书地址
     */
    @Column(name = "document_url")
    private String documentUrl;

    /**
     * 文书创建时间
     */
    @Column(name = "document_create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime documentCreateTime;

    /**
     * 文书审核状态
     */
    @Column(name = "document_approval_status")
    private String documentApprovalStatus;

    /**
     * 文书内容
     */
    @Column(name = "document_content")
    private String documentContent;

    /**
     * 文书审核状态：notSubmit 待提交 ，pending  审批中  ，pass 审核完成通过，return 审核完成退回 
     */
    @Column(name = "document_audit_status")
    private String documentAuditStatus;

    /**
     * 文书文号
     */
    @Column(name = "document_number")
    private String documentNumber;

    /**
     * 盖章后文书地址
     */
    @Column(name = "document_url_after_seal")
    private String documentUrlAfterSeal;

    /**
     * 签字后文书地址（当事人）
     */
    @Column(name = "document_url_after_sign")
    private String documentUrlAfterSign;

    /**
     * 签字时间（当事人）
     */
    @Column(name = "sign_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date signTime;

    /**
     * 送达时间
     */
    @Column(name = "sent_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime sentTime;

    /**
     * 送达截止日期
     */
    @Column(name = "sent_deadline")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate sentDeadline;

    /**
     * 文书送达状态
     */
    @Column(name = "document_sent_status")
    private String documentSentStatus;

    /**
     * 文书签字捺印状态
     */
    @Column(name = "document_signstamped_status")
    private String documentSignstampedStatus;

    /**
     * 文书生成时间
     */
    @Column(name = "document_approval_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date documentApprovalTime;

    /**
     * 创建人姓名
     */
    @Column(name = "create_user_name")
    private String createUserName;

    /**
     * 创建人id
     */
    @Column(name = "create_user_id")
    private String createUserId;

    /**
     * 空白文书地址
     */
    @Column(name = "document_url_blank")
    private String documentUrlBlank;

    /**
     * 当事人id
     */
    @Column(name = "party_id")
    private String partyId;

    /**
     * 文书状态 1:正常2:草稿 3:撤回
     */
    @Column(name = "document_record_status")
    private String documentRecordStatus;

    /**
     * 文书模板类型1：标准2：窄幅
     */
    @Column(name = "document_template_type")
    private String documentTemplateType;

    private static final long serialVersionUID = 1L;
}